import request from '@/utils/request'

// 查询质量检查列表
export function listQc(query) {
  return request({
    url: '/qms/qms/qc/list',
    method: 'get',
    params: query
  })
}

// 查询质量检查详细
export function getQc(qcUuid) {
  return request({
    url: '/qms/qms/qc/' + qcUuid,
    method: 'get'
  })
}

// 新增质量检查
export function addQc(data) {
  return request({
    url: '/qms/qms/qc',
    method: 'post',
    data: data
  })
}

// 修改质量检查
export function updateQc(data) {
  return request({
    url: '/qms/qms/qc',
    method: 'put',
    data: data
  })
}

// 删除质量检查
export function delQc(qcUuid) {
  return request({
    url: '/qms/qms/qc/' + qcUuid,
    method: 'delete'
  })
}
